﻿using System;

namespace ExpLib.Tools
{
    public static class IDGenerator
    {
        private static IIDGenerator generator = null;
        /// <summary>
        /// 用成一个ID
        /// </summary>
        /// <returns>字符串形式的ID</returns>
        public static String NewID()
        {
            //  return generator.NewID();
            throw new NotImplementedException();
        }
        /// <summary>
        /// 静态构造函数
        /// </summary>
        static IDGenerator()
        {
            throw new NotImplementedException();
            //String generatorType = ConfigurationManager.AppSettings["IDGenerator"];

            //switch (generatorType)
            //{
            //    default:
            //        generator = new UniqueStringID();
            //        break;
            //}
        }


        /// <summary>
        /// 用成一个ID
        /// </summary>
        /// <returns>字符串形式的ID</returns>
        public static String NewID(string perfix)
        {
            //return perfix + generator.NewID();
            throw new NotImplementedException();
        }
    }
}
